-- GENERATED SPELL FOR [Scourge Drudge] --


function spell0_30984(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(51917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30984', 658, 1)
end

function spell1_30984(pUnit, Event) --@Flesh Rot,n/a--
pUnit:FullCastSpellOnTarget(49678,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30984', 8000, 1)
end

function Sorts_30984(pUnit, Event)
local choix_sorts_30984 = math.random(0, 1)
if choix_sorts_30984 == 0 then
pUnit:RegisterEvent('spell0_30984', 1, 1)
end
if choix_sorts_30984 == 1 then
pUnit:RegisterEvent('spell1_30984', 1, 1)
end
end

function mob30984_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30984', math.random(1500, 3000), 1)
end

function mob30984_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30984_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30984_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30984, 1, 'mob30984_Action')
RegisterUnitEvent(30984, 2, 'mob30984_Leave')
RegisterUnitEvent(30984, 3, 'mob30984_Kill')
RegisterUnitEvent(30984, 4, 'mob30984_Die')
